import request from '@/utils/request'

/*
 * 资产管理-资产台账 api
 * @path "@/api/prod/asset/account";
*/

let path = '/prod/asset/account';

// 详情
export function get(id) {
  return request({
    url: path + `/${id}`,
    method: 'get',
  })
}

// 列表
export function pageList(data) {
  return request({
    url: path + '/list',
    method: 'post',
    data,
  })
}

// 分页
export function page(data) {
  return request({
    url: path + '/page',
    method: 'post',
    data,
  })
}

// 汇总
export function summary(data) {
  return request({
    url: path + '/summary',
    method: 'post',
    data,
  })
}

// 修改
export function edit(data) {
  return request({
    url: path + '/edit',
    method: 'post',
    data,
  })
}